package com.jv.webmvc;

import org.apache.catalina.startup.Tomcat;

@Deprecated
public class SpringApplicationRunner {
	public static void main(String[] args) {
		try {
			//实例化Tomcat
			Tomcat tomcat = new Tomcat();
			tomcat.setPort(8080);

			tomcat.start();
			tomcat.getServer().await();
		}catch (Exception e){
			e.printStackTrace();
		}
	}
}
